import * as tslib_1 from "tslib";
import { Entity, NgField, NgObject, EntityList, NgList, NgEntity } from '@farris/devkit';
import { ZdcdEntity } from './zdcdentity';
import { XlzlEntity } from './xlzlentity';
import { XstgEntity } from './xstgentity';
import { GhfaEntity } from './ghfaentity';
import { TgfaEntity } from './tgfaentity';
import { ScfaEntity } from './scfaentity';
import { PathHierarchyInfo2379Entity } from './pathhierarchyinfo2379entity';
var GlzdEntity = /** @class */ (function (_super) {
    tslib_1.__extends(GlzdEntity, _super);
    function GlzdEntity() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ID',
            dataField: 'id',
            primary: true,
            originalDataFieldType: 'String',
            initValue: '',
            path: 'ID',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], GlzdEntity.prototype, "id", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Version',
            dataField: 'version',
            originalDataFieldType: 'DateTime',
            initValue: '0001-01-01T00:00:00',
            path: 'Version',
            enableTimeZone: true,
        }),
        tslib_1.__metadata("design:type", String)
    ], GlzdEntity.prototype, "version", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'MerchantName',
            dataField: 'merchantName',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'MerchantName',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], GlzdEntity.prototype, "merchantName", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'MerchantCode',
            dataField: 'merchantCode',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'MerchantCode',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], GlzdEntity.prototype, "merchantCode", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Adminstrator',
            dataField: 'adminstrator',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'Adminstrator',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], GlzdEntity.prototype, "adminstrator", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'glzdfl',
            dataField: 'glzdfl',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'glzdfl',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], GlzdEntity.prototype, "glzdfl", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'glzdbh',
            dataField: 'glzdbh',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'glzdbh',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], GlzdEntity.prototype, "glzdbh", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'glzdbz',
            dataField: 'glzdbz',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'glzdbz',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], GlzdEntity.prototype, "glzdbz", void 0);
    tslib_1.__decorate([
        NgList({
            dataField: 'zdcds',
            originalDataField: '',
            type: ZdcdEntity
        }),
        tslib_1.__metadata("design:type", EntityList)
    ], GlzdEntity.prototype, "zdcds", void 0);
    tslib_1.__decorate([
        NgList({
            dataField: 'xlzls',
            originalDataField: '',
            type: XlzlEntity
        }),
        tslib_1.__metadata("design:type", EntityList)
    ], GlzdEntity.prototype, "xlzls", void 0);
    tslib_1.__decorate([
        NgList({
            dataField: 'xstgs',
            originalDataField: '',
            type: XstgEntity
        }),
        tslib_1.__metadata("design:type", EntityList)
    ], GlzdEntity.prototype, "xstgs", void 0);
    tslib_1.__decorate([
        NgList({
            dataField: 'ghfas',
            originalDataField: '',
            type: GhfaEntity
        }),
        tslib_1.__metadata("design:type", EntityList)
    ], GlzdEntity.prototype, "ghfas", void 0);
    tslib_1.__decorate([
        NgList({
            dataField: 'tgfas',
            originalDataField: '',
            type: TgfaEntity
        }),
        tslib_1.__metadata("design:type", EntityList)
    ], GlzdEntity.prototype, "tgfas", void 0);
    tslib_1.__decorate([
        NgList({
            dataField: 'scfas',
            originalDataField: '',
            type: ScfaEntity
        }),
        tslib_1.__metadata("design:type", EntityList)
    ], GlzdEntity.prototype, "scfas", void 0);
    tslib_1.__decorate([
        NgObject({
            dataField: 'treeInfo',
            originalDataField: 'TreeInfo',
            hierarchyType: 'path',
            type: PathHierarchyInfo2379Entity
        }),
        tslib_1.__metadata("design:type", PathHierarchyInfo2379Entity)
    ], GlzdEntity.prototype, "treeInfo", void 0);
    GlzdEntity = tslib_1.__decorate([
        NgEntity({
            originalCode: "glzd",
            nodeCode: "glzds"
        })
    ], GlzdEntity);
    return GlzdEntity;
}(Entity));
export { GlzdEntity };
